
import Service from '@/common/service/service';
import ResponseModel from '@/common/model/response.model';
import DictModel from '@/store/dict/dict.model';
import I18nModel from "@/store/dict/i18n.model";

/**
 * 获取系统必要数据
 */
export default class DictService {
	/**
	 * 数据字典接口
	 */
	public static getDict():Promise<ResponseModel<DictModel[]>>{
		return Service.get('sys/dataDict/findAllSysDataDict');
	}
	/**
	 * 文件路径前缀接口
	 */
	public static getUrlPrefix():Promise<ResponseModel<string>>{
		return Service.get('dfs/dfsAttach/getUrlPrefix');
	}

	/**
	 * 获取国际化字典
	 */
	public static getAllSysI18n(): Promise<ResponseModel<I18nModel[]>> {
		return Service.get('sys/i18n/getAllSysI18n');
	};

}
